home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / 24 aspnet applications / aspnetapplications / errorviewerpage.aspx.vb < prev    next >
Encoding:
Text File  |  2002-03-18  |  985 b   |  29 lines

  1. Public Class ErrorViewerPage
  2.     Inherits System.Web.UI.Page
  3.     Protected WithEvents DataList1 As System.Web.UI.WebControls.DataList
  4.  
  5. #Region " Web Form Designer Generated Code "
  6.  
  7.     'This call is required by the Web Form Designer.
  8.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  9.  
  10.     End Sub
  11.  
  12.     Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
  13.         'CODEGEN: This method call is required by the Web Form Designer
  14.         'Do not modify it using the code editor.
  15.         InitializeComponent()
  16.     End Sub
  17.  
  18. #End Region
  19.  
  20.     ' simply bind the DataList to the ErrorMessages shared ArrayList
  21.     ' that is exposed by the ErrorLoggerModule class.
  22.  
  23.     Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  24.         DataList1.DataSource = ErrorLoggerModule.ErrorMessages
  25.         DataList1.DataBind()
  26.     End Sub
  27.  
  28. End Class
  29.